const Router = require('koa-router');
const { nextApp } = require('../server');
let router = new Router();

router.get('*', async (ctx, next) => {
  let { req, res, query } = ctx;
  await nextApp.render(req, res, '/', query);
});
module.exports = router.routes();
